import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart';
import 'package:search_people/page/home/subs/person_detail/models/person_dynamic_model.dart';
import 'package:search_people/utils/component/list/section.dart';

class DynamicState {
  late TabController tc;
  late List<String> titles;
  Map<String, List<DynamicCardModel>> dynamicData = {};
  Map<String, List<String>> swiperData = {};
  Map<String, RefreshController> rcs = {};

  RefreshController get rc {
    return rcs[titles[tc.index]]!;
  }
}

class DynamicCardModel {
  String title;
  bool isExpend;
  List<PersonDynamicModel>? list;
  DynamicCardModel({
    required this.title,
    this.isExpend = false,
    this.list,
  });
}
